﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Principal.Master" AutoEventWireup="true" CodeBehind="Mapa.aspx.cs" Inherits="JurassicIslandWeb.Mapa" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CabeceraWeb" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContenidoWeb" runat="server">
    
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <script  type="text/javascript">
        function updateDateKey(value) {
            var behavior = $find('dp1');
            if (behavior) {
                behavior.populate(value);
            }
            Sys.Application.add_load(function () { updateDateKey(''); });
        }
    </script>
        <div class="two-posts">
        <div class="cl">&nbsp;</div>
            <div class="left">
                <div class="post">
                <p>
                        <asp:UpdatePanel ID="upMapa" runat="server" UpdateMode="Conditional" 
                        ClientIDMode="Static">
                        <ContentTemplate>
                            <asp:Image ID="imgMapa" runat="server" ImageUrl="~/MapFiles/botonDino.gif" />
                            <p>
                                <b>Te encuentras en: <b />
                                <asp:Label ID="lLugar" runat="server" Text="Lugar"></asp:Label>
                            </p>
                            
                            
                            </b></b>
                            
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <div runat="server" id="myDiv"></div>
                        <asp:DynamicPopulateExtender 
                        ID="dp" BehaviorID="dp1" runat="server"
                        TargetControlID="myDiv"
                        ClearContentsDuringUpdate="true"
                        ServiceMethod="GetHtml" />  
                    </div>
            </div>
            <div class="right">
                <div class="post">
                    <p>
                        <b>Jugador:</b> <asp:LoginName ID="LoginNameJugador" runat="server" />
                    </p>
                    <p><asp:Image ID="Mochila" runat="server" ImageUrl="~/Images/mochilita.gif" 
                            Height="150px" /></p>
                    <div runat="server" id="divMochila"></div><br />
                    <p><asp:Label ID="lDinero" runat="server" Text="0">5000</asp:Label>
                <asp:Image ID="imgMoneda" runat="server" ImageUrl="~/Images/coin.gif" 
                            ClientIDMode="Static" Height="20px" ImageAlign="AbsMiddle" />
                    <br /><asp:Label ID="lVida" runat="server" Text="0">100</asp:Label>
                <asp:Image ID="ImageVida" runat="server" ImageUrl="~/Images/corazon.gif" 
                            ClientIDMode="Static" Height="20px" ImageAlign="AbsMiddle" /></p>
                </div>
            </div>
        <div class="cl">&nbsp;</div>
        </div>
</asp:Content>
